package com.zmn.plat.model.entity.channel;

import com.zmn.common.utils.pager.Pages;

/**
 * base_channel
 *
 * @author tanghongjun
 */
public class ChannelDnisQuery extends Pages {
    private Integer id;

    /**
     * 新系统渠道ID
     */
    private Integer channelId;

    /**
     * 老系统渠道
     */
    private Integer srcId;

    private String dnis;

    private String name;

    /**
     * 备注
     */
    private String remark;

    /**
     * 对应400
     */
    private String phone400;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Integer getSrcId() {
        return srcId;
    }

    public void setSrcId(Integer srcId) {
        this.srcId = srcId;
    }

    public String getDnis() {
        return dnis;
    }

    public void setDnis(String dnis) {
        this.dnis = dnis;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPhone400() {
        return phone400;
    }

    public void setPhone400(String phone400) {
        this.phone400 = phone400;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ChannelDnisQuery other = (ChannelDnisQuery) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId())) && (this.getSrcId() == null ? other.getSrcId() == null : this.getSrcId().equals(other.getSrcId())) && (this.getDnis() == null ? other.getDnis() == null : this.getDnis().equals(other.getDnis())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) && (this.getPhone400() == null ? other.getPhone400() == null : this.getPhone400().equals(other.getPhone400()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getSrcId() == null) ? 0 : getSrcId().hashCode());
        result = prime * result + ((getDnis() == null) ? 0 : getDnis().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getPhone400() == null) ? 0 : getPhone400().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", channelId=").append(channelId);
        sb.append(", srcId=").append(srcId);
        sb.append(", dnis=").append(dnis);
        sb.append(", name=").append(name);
        sb.append(", remark=").append(remark);
        sb.append(", phone400=").append(phone400);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}